import request from '@/utils/request'


export default {

// 添加小节
addVideo(video){

    return request({
        url: '/serviceedu/edu-video/addVideo',
        method: 'POST',
        data: video
    })
},

// 删除小结
deleteVideo(id){
    return request({
        url: `/serviceedu/edu-video/${id}`,
        method: 'delete'
    })
},


// 根据id 查询章节
getChapterId(id){
    return request({
        url: `/serviceedu/edu-video/getVideoinfo/${id}`,
        method:'get'
    })
},


// 修改章节
updateVideoChapter(video){
    return request({
        url: '/serviceedu/edu-video/updateVideo',
        method: 'POST',
        data: video
    })
},
    

// 删除阿里云的视频
deleteAlyVideo(id){
    return request({
        url: `/eduvod/video/removeAlyVideo/${id}`,
        method: 'delete'
    })
},





}